package com.fesine.learn.design.pattern.structural.adapter;

/**
 * @description: 类描述
 * @author: fesine
 * @createTime:2019/4/29
 * @update:修改内容
 * @author: fesine
 * @updateTime:2019/4/29
 */
public class PowerAdapter implements DC5 {
    private AC220 ac220 = new AC220();
    @Override
    public int outputDC5V() {
        int input = ac220.outputAC220V();
        int output = input/44;
        System.out.println("使用PowerAdapter输入AC:"+input+"V,输出DC:"+output+"V");
        return output;
    }
}
